
FLAG = -I. -I.. -I$(HOME)/include -L$(HOME)/lib -L../drift -DDRIFT_CONSOLE
SRC = drift-serve.cpp

all:
	@echo "#define compileid \"compiled: $(shell date) @$(shell hostname)\"" > compile-id.inc
	mpic++ $(SRC) ../drift/libdrift.a $(FLAG) -lomdtool -lmuparser  -o edrift
	g++ -o edrift-con drift-console.cpp $(FLAG) -lreadline -lcurses -lomdtool -lmuparser 

mac:
	@echo "#define compileid \"compiled: $(shell date) @$(shell hostname)\"" > compile-id.inc
	mpic++ $(SRC) $(FLAG) -I/opt/local/include -lomdtool -ldrift -lmuparser -o edrift
	g++  drift-console.cpp $(FLAG) -lomdtool -lreadline -o edrift-con

clean:
	rm -f edrift edrift-con
	